class AuditDict{
    dict:any=[
        {
            key: 0,
            value: "施工中",
            color: "#1677FF"
        },
        {
            key: 1,
            value: "审核中",
            color: "#FFCE44"
        },
        {
            key: 2,
            value: "未通过",
            color: "#D1462F"
        },
        {
            key: 3,
            value: "已通过",
            color: "#19A160"
        }
    ]
    getValueByKey(key:any){
        let item = this.dict.find((item:any)=>{
            return item.key == key
        })
        if(item) return item.value
        return ""
    }
    getColorByKey(key:any){
        let item = this.dict.find((item:any)=>{
            return item.key == key
        })
        if(item) return item.color
        return ""
    }
}

export default new AuditDict()
